package cn;

import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class Sk {
    public static void main(String[] args) throws NoSuchAlgorithmException {
        var pwd="admin";
        var md= MessageDigest.getInstance("md5");
        md.update(pwd.getBytes());
        var su=new StringBuilder(32);
        for(byte b:md.digest()){
            su.append(String.format("%02x",b));
        }
        System.out.println(pwd);
        System.out.println(su);
        System.out.println(su.toString().length());


    }
}
